import { createSlice } from "@reduxjs/toolkit";

const homeStore=createSlice({
    name:'home',
    initialState:{
        checkedTab:"",
        token:null,
    },
    reducers:{
        setCheckedTab:(state,action)=>{
            state.checkedTab=action.payload;
        },
        setToken(state,action){
            state.token=action.payload
        }
    }
})

export const {setCheckedTab,setToken}=homeStore.actions;
export default homeStore.reducer;
